package cn.devzyh.domain;

/**
 * 响应对象
 */
public class ResultVo {

    // 响应是否成功
    private boolean success;
    // 响应状态码
    private int state;
    // 响应文本信息
    private String message;
    // 响应对象数据
    private Object content;

    public ResultVo() {
    }

    public ResultVo(boolean success, int state, String message, Object content) {
        this.success = success;
        this.state = state;
        this.message = message;
        this.content = content;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }
}
